<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        num1 = + prompt("请输入一个数字")
        if (num1 < 10){
            num1 = `0${num1}`
        }
        alert(num1)

    </script>
</body>
</html>